import request from "@/utils/request";


export function getFenlei(params) {
    return request({
      url: "/category/page",
      method: "get",
      params,
    });
  }

export function createCaipin(data) {
  return request({
    url: "/category",
    method: "post",
    data,
  });
}

export function changeRevise(data) {
    console.log(data)
    return request({
      url: "/category",
      method: "put",
      data,
      
    });
}
// export function createTaocan(data) {
//   return request({
//     url: "/category",
//     method: "post",
//     data,
//   });
// }